package com.example.demoredisspringboot.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;
import org.springframework.data.redis.core.TimeToLive;
import org.springframework.data.redis.core.index.Indexed;

/**
 * <b><code>TestEntity</code></b>
 * <p>
 * Description
 * <p>
 * <b>Create Time:</b> 2023/3/31 9:25.
 *
 * @author qd.yt
 * @version 0.0.1
 * @since demo-redis-springboot v0.0.1
 */
@RedisHash
@Data
public class TestEntity {
    @Id
    private String phone;
    @Indexed
    private String name;
    @TimeToLive
    private Long time;
}
